# -*- coding: UTF-8 -*-
#! /usr/bin/python

import textile
import sys

__author__="aeolus"
__date__ ="$15.03.2010 4:59:43$"

mytext = ''

if __name__ == "__main__":
    if (len(sys.argv) == 3):
        fin = open(sys.argv[1], 'r')
        while True :
            foo=fin.read(1)
            if foo=='' :
                break
            mytext+=foo
        fout = open(sys.argv[2], 'w')
        fout.write(textile.textile(mytext))




